home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 22 / CU Amiga Magazine's Super CD-ROM 22 (1998)(EMAP Images)(GB)[!][issue 1998-05].iso / PowerPC / Programming / PPCSmallEiffel / lib_se / e_retry.e < prev    next >
Encoding:
Text File  |  1998-01-16  |  2.1 KB  |  80 lines

  1. --          This file is part of SmallEiffel The GNU Eiffel Compiler.
  2. --          Copyright (C) 1994-98 LORIA - UHP - CRIN - INRIA - FRANCE
  3. --            Dominique COLNET and Suzanne COLLIN - colnet@loria.fr 
  4. --                       http://www.loria.fr/SmallEiffel
  5. -- SmallEiffel is  free  software;  you can  redistribute it and/or modify it 
  6. -- under the terms of the GNU General Public License as published by the Free
  7. -- Software  Foundation;  either  version  2, or (at your option)  any  later 
  8. -- version. SmallEiffel is distributed in the hope that it will be useful,but
  9. -- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  10. -- or  FITNESS FOR A PARTICULAR PURPOSE.   See the GNU General Public License 
  11. -- for  more  details.  You  should  have  received a copy of the GNU General 
  12. -- Public  License  along  with  SmallEiffel;  see the file COPYING.  If not,
  13. -- write to the  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  14. -- Boston, MA 02111-1307, USA.
  15. --
  16. class E_RETRY
  17.    --   
  18.    -- To store instruction "retry" for exception handling.
  19.    --
  20.  
  21. inherit INSTRUCTION;
  22.       
  23. creation make
  24.    
  25. feature 
  26.    
  27.    start_position: POSITION;
  28.    
  29.    make(sp: like start_position) is
  30.       do
  31.      start_position := sp;
  32.       end; -- make
  33.    
  34. feature
  35.    
  36.    end_mark_comment: BOOLEAN is false;
  37.  
  38. feature
  39.    
  40.    afd_check, compile_to_c is   
  41.       do
  42.      error(start_position,"retry is not yet implemented.");
  43.       end;
  44.    
  45.    compile_to_jvm is
  46.       do
  47.      eh.add_position(start_position);
  48.      fatal_error(fz_jvm_error);
  49.       end;
  50.    
  51.    to_runnable(rc: like run_compound): like Current is
  52.       do
  53.      if run_compound = Void then
  54.         run_compound := rc;
  55.         Result := Current;
  56.      elseif run_compound = rc then
  57.         Result := Current
  58.      else
  59.         !!Result.make(start_position);
  60.         Result := Result.to_runnable(rc);
  61.      end;
  62.       end;
  63.    
  64.    is_pre_computable: BOOLEAN is false;
  65.  
  66.    pretty_print is
  67.       do
  68.      fmt.put_string("retry");
  69.      if fmt.semi_colon_flag then
  70.         fmt.put_character(';');
  71.      end;
  72.       end;
  73.    
  74.    use_current: BOOLEAN is
  75.       do
  76.       end;
  77.    
  78. end -- E_RETRY
  79.  
  80.